//
//  MeAboutViewController.m
//  CarUser
//
//  Created by 王森林 on 2019/1/16.
//  Copyright © 2019年 王森林. All rights reserved.
//

#import "MeAboutViewController.h"

@interface MeAboutViewController ()

@end

@implementation MeAboutViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title  = @"关于";
    [self createUI];
    // Do any additional setup after loading the view.
}

- (void)createUI
{
    UIImageView *logoImageView = [[UIImageView alloc] initWithFrame:CGRectMake((BOUNDWIDTH- 60)/2, 100, 60, 60)];
    logoImageView.image = [UIImage imageNamed:@"home_delivery"];
    [self.view addSubview:logoImageView];
    
    UILabel  *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 180, BOUNDWIDTH, 15)];
    titleLabel.font  = FONT_SIZE(16);
    titleLabel.text = @"平行先锋V1.0";
    titleLabel.textColor = Common_TextColor;
    titleLabel.textAlignment  = NSTextAlignmentCenter;
    [self.view addSubview:titleLabel];
    
    UIButton *phoneBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    phoneBtn.frame = CGRectMake(0, 210, BOUNDWIDTH, 30);
//    phoneBtn.titleLabel.textColor = Common_TextColor;
    [phoneBtn setTitleColor:Common_TextColor forState:UIControlStateNormal];
    phoneBtn.titleLabel.font  = FONT_SIZE(16);
    [phoneBtn setTitle:@"客服电话 :400-1060988" forState:UIControlStateNormal];
    [phoneBtn addTarget:self action:@selector(handleCallAction) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:phoneBtn];
    
    
    UILabel  *downLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, BOUNDHEIGHT - 30-64-44, BOUNDWIDTH, 15)];
    downLabel.font  = FONT_SIZE(12);
    downLabel.text = @"武汉临空港国际贸易有限公司";
    downLabel.textColor = Common_TextColor;
    downLabel.textAlignment  = NSTextAlignmentCenter;
    [self.view addSubview:downLabel];
    
    UILabel  *down1Label = [[UILabel alloc] initWithFrame:CGRectMake(0, BOUNDHEIGHT - 10-64-44, BOUNDWIDTH, 15)];
    down1Label.font  = FONT_SIZE(12);
    down1Label.text = @"© 2018-2019 All rights reserved";
    down1Label.textColor = Common_TextColor;
    down1Label.textAlignment  = NSTextAlignmentCenter;
    [self.view addSubview:down1Label];
    
    
}

- (void)handleCallAction
{
    NSMutableString * str=[[NSMutableString alloc] initWithFormat:@"tel:%@",@"400-1060988"];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
    

    
 
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
